//+------------------------------------------------------------------+
//|                                                           tt.mq4 |
//|                               Copyright 2016, STW Software Corp. |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2016, STW Software Corp."
#property link      "https://www.mql5.com"
#property version   "1.00"
#property strict
#property script_show_inputs
//--- input parameters
input int      Input1;
input int      Input2;
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
   MqlRates  MyRates[];
   
   ArraySetAsSeries(MyRates,true);
   CopyRates(Symbol(),PERIOD_CURRENT,0,500,MyRates);
   Print(MyRates[0].time,MyRates[1].time);
   
   ArraySetAsSeries(MyRates,false);
   CopyRates(Symbol(),PERIOD_CURRENT,0,500,MyRates);
   Print(MyRates[0].time,MyRates[1].time);
//---
   
  }
//+------------------------------------------------------------------+
